#include <iostream>
#include "SpriteAurora.h"

using namespace std;

SpriteAurora::SpriteAurora( int module, int frame, int anim )
{
	this->numOfModule = module;
	this->numOfFrame = frame;
	this->numOfAnim = anim;
	this->module = new Module_Aurora[module];
	this->frame = new Frame_Aurora[frame];
	this->anim = new Anim_Aurora[anim];
};

int SpriteAurora::getModuleID ( int frameID )
{
	int moduleID = 0;
	if ( frameID < this->numOfModule )
		moduleID = this->frame[frameID].fModuleID;
	return moduleID;
}


void SpriteAurora::setImageName ( char* imageName )
{
	this->imageName = new char[strlen( imageName )];
	strcpy ( this->imageName, imageName );
}

void SpriteAurora::setImageExtendName ( char* imageExtendName )
{
	this->imageExtendName = new char[strlen( imageExtendName )];
	strcpy ( this->imageExtendName, imageExtendName );
}

void SpriteAurora::setImageSize ( int w, int h )
{
	this->imageSize.w  =  w;
	this->imageSize.h  =  h;
}